/*
 * ProductBO.java
 *
 * Created on March 28, 2007, 7:34 PM
 */

package edu.byu.isys413.mystuff.sales;

/**
 *
 * @author Gabe Larsen
 */    
  /**
 * Create a new instance of productBO
 */
   public abstract class ProductBO {
       
       private double price;
       private String productId;
       private String Sku;
       private boolean dirty = false;   
       private boolean alreadyInDatabase = false;

       
    /**
     * Get the price for the productBO
     */
    public double getPrice() {
        return price;
    }

    /**
     * Set the Price inside the productBO
     */
    public void setPrice(double price) {
        this.price = price;
    }

    /**
     * get the productId for the productBO
     */
    public String getProductId() {
        return productId;
    }

    /**
     * set the productId inside the productBO
     */
    public void setProductId(String productId) {
        this.productId = productId;
    }

    /**
     * Returns isDirty if information has been changed
     */
    public boolean isDirty() {
        return dirty;
    }

    /**
     * Set the variable isDirty to show that intformation in the productBO has been changed in the DB
     */
    public void setDirty(boolean dirty) {
        this.dirty = dirty;
    }

    /**
     * Sends a return object if the information is already stored in the DB
     */
    public boolean isAlreadyInDatabase() {
        return alreadyInDatabase;
    }

    /**
     * Set this variable to show that information in this object has already been saved to the DB
     */
    public void setAlreadyInDatabase(boolean alreadyInDatabase) {
        this.alreadyInDatabase = alreadyInDatabase;
    }

    public String getSku() {
        return Sku;
    }

    public void setSku(String Sku) {
        this.Sku = Sku;
    }

   }//end productBO